package ytdp.careagle.com.ytdp.utils;

import android.text.TextUtils;

import java.util.regex.Pattern;

/**
 * Created by lida on 2017/4/21 0021.
 * 检查手机号格式
 */

public class MobileCheckUtils {
    public static boolean isMobileNO(String mobiles) {

        if (TextUtils.isEmpty(mobiles)) {
            return false;
        }
        if (mobiles.length() != 11) {
            return false;
        }
        if (!mobiles.substring(0, 1).equals("1")) {
            return false;
        }
        return Pattern.matches("\\d{11}$", mobiles);
    }
}
